package com.health.system.api;

import com.health.common.core.constant.ServiceNameConstants;
import com.health.common.core.domain.R;
import com.health.system.api.domain.ShmRegisterDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteRegisterService", value = ServiceNameConstants.REGISTER_SERVICE)
public interface RemoteRegisterService {

    @PostMapping("/register/insertRegister")
    public R insertRegister(@RequestBody ShmRegisterDTO shmRegisterDTO);

    @PutMapping("/register/cancelRegister/{registerNo}")
    public R cancelRegister(@PathVariable String registerNo);

}
